package edu.spec.common.model;


public class AjaxReturn {

    private boolean success;
    private Object data;
    private String message;
    private Long total;

	public AjaxReturn() {
	}

	public AjaxReturn(boolean success) {
		this.success = success;
	}

    public AjaxReturn(boolean success, String message) {
        this.success = success;
        this.message = message;
    }

    public AjaxReturn(boolean success, Object data) {
		this.success = success;
		this.data = data;
	}

	public AjaxReturn(boolean success, Object data, String message) {
		this.success = success;
        this.data = data;
		this.message = message;
	}

	public AjaxReturn(boolean success, Object data, Long total) {
		this.success = success;
        this.data = data;
        this.total = total;
	}

	public AjaxReturn(String errormsg) {
		this.success = false;
		this.message = errormsg;
	}

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getMsg() {
        return message;
    }

    public void setMsg(String message) {
        this.message = message;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }
}
